Add support for Kimi Code, ZCode/GLM, Pi/SPI, and Reasonix/DeepSeek#1
Add support for Kimi Code, ZCode/GLM, Pi/SPI, and Reasonix/DeepSeek#1Theoz001 wants to merge 1 commit into
Conversation
484f011 to
34b967a
Compare
|
Thanks for the PR. The direction is useful, especially adding more local collectors for Kimi Code, ZCode/GLM, Pi/SPI, and Reasonix/DeepSeek. I reviewed the branch locally. I don’t think this is ready to merge yet because there are a few blocking regressions:
What I verified locally:
I’d be happy to review again after the quota-card change is split/reverted, archived Codex sessions are excluded from the Python collector, WorkBuddy’s status is resolved, and the fixture is fixed. |
048883f to
ec66cb0
Compare
…Seek Core changes: - Swift UsageCollector now reads Kimi Code, ZCode, Pi, and Reasonix/DeepSeek native logs. - canonicalModelName() normalizes model aliases (e.g. daimon-kimi-code -> Kimi 2.6, deepseek-v4-pro -> DeepSeek V4 Pro, gpt-5.4 -> GPT-5.4). - Falls back to session_meta.model_provider when Codex JSONL turn_context lacks a model name, reducing unknown-model entries. - Aggregates usage per canonical model across clients in StatsView and keeps a per-tool/per-model breakdown in DailyUsage.toolModels for deep dives. - Adds UI colors and ordering for the new agents. - Updates pricing.json with new model tiers. - Python token_usage_monitor.py now supports the same agents and excludes archived Codex sessions from scanning. - Fixes CCSwitchProxy fixture assertion for canonicalized GPT-5.4 model name. WorkBuddy and the popover daily-model card are left out of this branch; they remain in add-more-agents-ui for separate review.
ec66cb0 to
92202c6
Compare
Summary
This PR adds local token usage tracking for four additional AI coding agents that write usage metadata to local files:
Data sources
/.reasonix/sessions/*.events.jsonl" and "/.reasonix/projects/**/*.events.jsonl"All new collectors only read numeric usage metadata. They do not read prompts, code, tool outputs, or conversation text.
Changes
Privacy
The new collectors follow the existing local-first principle: they read only timestamp/model/usage fields from local logs and do not upload anything.
Testing
Notes